<%@ page language="java" pageEncoding="UTF-8"%>
<%@ page import="java.util.List" %>
<%@ page import="my.market.jdbc.dataClass.*" %>
<%@ page import="my.market.jdbc.dao.*" %>

<%	String id = request.getParameter("id");
	OrdersDao od = new OrdersDao();
	Orders order = od.getOrdersById(Integer.valueOf(id));%>
<html>
<head>
<title>支付</title>
<link type="text/css" href="${pageContext.request.contextPath }/pageDisplay/css/main.css" rel="stylesheet" />
</head>
<body class="main">
<%@include file="head.jsp" %>
<div class="content">
<table>
	<tr>
		<td><%@include file="category.jsp" %></td>
		<td><%@include file="search.jsp" %></td>
	</tr>
</table>
</div>
<div class="content">
<table>
	<tr>
		<td>订单编号</td>
		<td>订单金额</td>
		<td>下单时间</td>
	</tr>
	<tr>
		<td><%=order.getId() %></td>
		<td><%=order.getTotal_money() %></td>
		<td><%=order.getOrder_time() %></td>
	</tr>
	<tr>
		<td><a href='${pageContext.request.contextPath }/payServlet?id=<%=id %>'><button type="button" >支付</button></a></td>
		<td><a href="${pageContext.request.contextPath }/pageDisplay/order.jsp"><button type="button">返回</button></a></td>
	</tr>
</table>
</div>
<%@include file="foot.jsp" %>
</body>
</html>